package com.lkdont.android.media.opengl

import android.opengl.GLES20

/**
 * 2D片元着色器
 *
 * @author lqd
 */
class FrameFragmentShader : GLShader() {

    override val type: Int
        get() = GLES20.GL_FRAGMENT_SHADER

    override val shaderCode: String
        get() = """
#extension GL_OES_EGL_image_external : require
precision mediump float;
varying vec2 vTextureCoord;
uniform samplerExternalOES sTexture;
void main() {
    gl_FragColor = texture2D(sTexture, vTextureCoord);
}
"""
}